package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.ReceivingBillentryHand;
import com.ruoyi.business.mapper.ReceivingBillentryHandMapper;
import com.ruoyi.business.service.ReceivingBillentryHandService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author JerryLu
 * @date 2024/8/24 15:46
 * @description 物料明细类人工核验Service业务层处理
 */
@Service
public class ReceivingBillentryHandServiceImpl extends ServiceImpl<ReceivingBillentryHandMapper, ReceivingBillentryHand> implements ReceivingBillentryHandService {
    @Override
    public List<ReceivingBillentryHand> queryList(ReceivingBillentryHand billentryHand) {
        QueryWrapper<ReceivingBillentryHand> queryWrapper = Wrappers.query();
        if (billentryHand.getReceivingId() > 0) {
            queryWrapper.eq("receiving_id", billentryHand.getReceivingId());
        }
        return this.list(queryWrapper);
    }


}
